package muilty_thread.java_current_practice_and_kernel.cp3;

public class DCLSingleton {
    private static volatile DCLSingleton dclSingleton = null;

    private DCLSingleton() {
    }

    public static DCLSingleton getInstance(){
        if (dclSingleton == null) {
            synchronized (DCLSingleton.class) {
                if (dclSingleton == null) {
                    dclSingleton = new DCLSingleton();
                }
            }
        }

        return dclSingleton;
    }


}
